package net.xiaosaguo.mymall.product.feign;

import net.xiaosaguo.common.pojo.dto.SkuReductionDTO;
import net.xiaosaguo.common.pojo.dto.SpuBoundDTO;
import net.xiaosaguo.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * description: 调用优惠券服务接口
 *
 * @author xiaosaguo
 * @date 2020/06/16
 */
@FeignClient("mymall-coupon")
public interface CouponFeignService {

    @PostMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundDTO spuBoundDTO);

    @PostMapping("/coupon/skufullreduction/saveinfo")
    R saveSkuReduction(@RequestBody SkuReductionDTO skuReductionDTO);
}
